/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* 顶部横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 章节样式 */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* 内容盒子 */
.content-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.problem-list {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--warning-color);
}

.problem-list h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.problem-list ul {
    list-style: none;
    padding-left: 0;
}

.problem-list li {
    margin: 0.8rem 0;
    font-size: 1.1rem;
}

.highlight {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.1rem;
}

.highlight strong {
    color: var(--primary-color);
}

/* 对比网格 */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.comparison-card.highlight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-label {
    font-weight: bold;
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.card-label.codebuddy {
    color: var(--danger-color);
}

.card-label.cursor {
    color: var(--success-color);
}

.card-list {
    list-style: none;
    padding: 0;
}

.card-list li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card-highlight {
    background: var(--success-color);
    color: white;
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/* 价格对比 */
.price-comparison {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 2rem 0;
}

.price-item {
    text-align: center;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.old-price .price-value {
    text-decoration: line-through;
    opacity: 0.7;
}

.new-price .price-value {
    color: #fbbf24;
}

.price-arrow {
    font-size: 2rem;
    font-weight: bold;
}

.save-badge {
    background: #fbbf24;
    color: var(--text-dark);
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Claude测试对比 */
.claude-test {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.test-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.test-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.test-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.test-card.winner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.winner-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #fbbf24;
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.test-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.test-card ul {
    list-style: none;
    padding: 0;
}

.test-card li {
    margin: 0.8rem 0;
}

/* 升级网格 */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.upgrade-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.upgrade-card:hover {
    transform: translateY(-5px);
}

.upgrade-number {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: bold;
}

.upgrade-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.upgrade-compare p {
    margin: 1rem 0;
    line-height: 1.8;
}

.upgrade-compare .old {
    color: var(--danger-color);
    font-weight: 600;
}

.upgrade-compare .new {
    color: var(--success-color);
    font-weight: 600;
}

.highlight-text {
    color: var(--success-color);
    font-weight: bold;
}

.record-time {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-light);
}

/* FAQ网格 */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.faq-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.faq-card p {
    margin: 1rem 0;
    line-height: 1.8;
}

.faq-card ul {
    list-style: none;
    padding: 0;
}

.faq-card li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.price-table {
    margin: 1.5rem 0;
}

.price-row {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: var(--bg-light);
}

.price-row.recommended {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    border: 2px solid var(--primary-color);
}

.price-type {
    font-weight: bold;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.price-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.hot-price {
    color: var(--danger-color);
    font-weight: bold;
}

.buy-link {
    margin-top: 1rem;
    text-align: center;
}

.buy-link a {
    color: var(--primary-color);
    font-weight: bold;
}

.warning {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
    margin-top: 1rem;
}

/* 价格卡片 */
.pricing-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-value {
    font-size: 3.5rem;
    font-weight: bold;
}

.price-tag {
    background: #fbbf24;
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
}

.pricing-includes {
    padding: 2rem;
}

.pricing-includes h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.include-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.include-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.include-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.include-value {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.include-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pricing-guarantee {
    padding: 2rem;
    background: #d1fae5;
    border-radius: 8px;
    margin: 0 2rem 2rem;
}

.pricing-guarantee h3 {
    margin-bottom: 1rem;
    color: var(--success-color);
}

.pricing-guarantee ul {
    list-style: none;
    padding: 0;
}

.pricing-guarantee li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.pricing-cta {
    padding: 2rem;
    text-align: center;
    background: var(--bg-light);
}

.payment-note {
    margin-top: 1rem;
    color: var(--text-light);
}

/* 学员反馈 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.testimonial-author {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.testimonial-tag {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-card p {
    line-height: 1.8;
    font-style: italic;
}

/* 联系方式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-card ul {
    list-style: none;
    padding: 0;
}

.contact-card li {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.note {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* 底部 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin: 0.5rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-motto {
    margin-top: 0.5rem;
    color: #fbbf24;
    font-weight: bold;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comparison-grid,
    .upgrade-grid,
    .faq-grid,
    .testimonials-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .price-comparison {
        flex-direction: column;
        gap: 1rem;
    }
    
    .price-arrow {
        transform: rotate(90deg);
    }
    
    .test-grid {
        grid-template-columns: 1fr;
    }
    
    .includes-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

